function CrewMemberObject(theGame,name,rollCrew,dailyConsumptions,skills,avatar,hireable,fireable){
	var game = theGame;
	this.name = name;
	this.dailyConsumptions = dailyConsumptions;
	this.skills = skills;
	this.avatar = avatar;
	this.hireable = hireable;
	this.fireable = fireable;
	
	this.rollCrew = rollCrew;
	
	this.getName = function(){return this.name;};
	this.getDailyConsumptions = function(){return this.dailyConsumptions;};
	this.getSkills = function(){return this.skills;};
	this.isAvatar = function(){return this.avatar;};
	this.isHireable = function(){return this.hireable;};
	this.isFireable = function(){return this.fireable;};
}
function CrewMembersObject(theGame){
	var game = theGame;
	this.crewMembers = {};
	this.crewMembers.avatar = new CrewMemberObject(
		game,//theGame
		"you",//name
		function(){return 1;},//rollCrew
		{"food":1},//dailyConsumptions
		{"sailing":1},//skills
		true,//avatar
		false,//hireable
		false);//fireable
	this.getCrewMember = function(crewMember){
		return this.crewMembers[crewMember];
	};
	this.getCrewMemberList = function(){
		var result = [];
		for(var crewMember in this.crewMembers){
			result.push(crewMember);
		}
		return result;
	};
}
